package com.yans.maps.vo
{
	import com.yans.maps.consts.ItemType;

	public class DragVo extends Object
	{ 
		
		[Bindable]
		public var name:String;
		[Bindable]
		public var path:String;
		[Bindable]
		public var type:int;
		[Bindable]
		public var id:int;
		
		[Bindable]
		public var targetMapID:int;
		[Bindable]
		public var targetMapX:Number = 0;
		[Bindable]
		public var targetMapY:Number = 0;
		
		public function toString():String {
			return "ID:" + id + "名称:" + name + "类型:" + type + "路径:" + path;
		}
		public static function getTypeName(type:int):String {
			switch(type)
			{
				case ItemType.COLLECTION_POINT:
					return "采集点";
				case ItemType.JUMP_POINT:
					return "传送门";
				case ItemType.MONSTER:
					return "怪兽";
				case ItemType.NPC:
					return "NPC";
				case ItemType.PLAYER:
					return "玩家";
			}
			return "未知类型"
		}
		public function DragVo()
		{
		}
	}
}